#include "Renderer_PCH.h"
#include "RSamplerState.h"

/*--------------------------------------------------------------------------*/

RSamplerState::RSamplerState() :
	m_wrapS(GL_REPEAT),
	m_wrapT(GL_REPEAT),
	m_wrapR(GL_REPEAT),
	m_minFilter(GL_LINEAR),
	m_magFilter(GL_LINEAR),
	m_handle(0)
{

}

/*--------------------------------------------------------------------------*/

GLenum RSamplerState::GetWrapS() const
{
	return m_wrapS;
}

/*--------------------------------------------------------------------------*/

GLenum RSamplerState::GetWrapT() const
{
	return m_wrapT;
}

/*--------------------------------------------------------------------------*/

GLenum RSamplerState::GetWrapR() const
{
	return m_wrapR;
}

/*--------------------------------------------------------------------------*/

GLenum RSamplerState::GetMinFilter() const
{
	return m_minFilter;
}

/*--------------------------------------------------------------------------*/

GLenum RSamplerState::GetMagFilter() const
{
	return m_magFilter;
}

/*--------------------------------------------------------------------------*/

void RSamplerState::SetWrapS( GLenum n )
{
	m_wrapS = n;
}

/*--------------------------------------------------------------------------*/

void RSamplerState::SetWrapT( GLenum n )
{
	m_wrapT = n;
}

/*--------------------------------------------------------------------------*/

void RSamplerState::SetWrapR( GLenum n )
{
	m_wrapR = n;
}

/*--------------------------------------------------------------------------*/

void RSamplerState::SetMinFilter( GLenum n )
{
	m_minFilter = n;
}

/*--------------------------------------------------------------------------*/

void RSamplerState::SetMagFilter( GLenum n )
{
	m_magFilter = n;
}

/*--------------------------------------------------------------------------*/

uint RSamplerState::GetHandle() const
{
	return m_handle;
}

/*--------------------------------------------------------------------------*/